AHipGamepad

Undocumented in source.

Members

Functions

isConnected
bool isConnected()
Undocumented in source. Be warned that the author may not have intended to support it.
isVibrating
bool isVibrating()
Undocumented in source. Be warned that the author may not have intended to support it.
setAlivezone
void setAlivezone(float threshold)
Undocumented in source. Be warned that the author may not have intended to support it.
setConnected
void setConnected(bool connected)
Undocumented in source. Be warned that the author may not have intended to support it.
setDeadzone
void setDeadzone(float threshold)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_isConnected
bool _isConnected;
Undocumented in source.
aliveZone
float aliveZone;
Undocumented in source.
deadZone
float deadZone;
Undocumented in source.
vibrationPower
float vibrationPower;
Undocumented in source.
vibrationTime
float vibrationTime;
Undocumented in source.

Inherited Members

From IHipGamepad

setVibrating
bool setVibrating(float vibrationPower, float time)

Returns wether it is vibrating. Receives a time to stop vibrating

isVibrating
bool isVibrating()
Undocumented in source.
getId
ubyte getId()

Returns the Id for this controller, usually the order in which it was connected

poll
void poll(float deltaTime)

Completely implementation dependent, deltaTime is used for it auto stop vibrating

getAnalogState
float[3] getAnalogState(HipGamepadAnalogs analog)

Returns a Vector3 containing the current state of the analog

setDeadzone
void setDeadzone(float threshold)

This will set a deadzone for making gamepad doesn't issue any kind of event until the threshold

getBatteryStatus
float getBatteryStatus()

Returns the battery status in range 0 - 1, only makes sense when wireless

isWireless
bool isWireless()

Knowing wether it is wireless may be essential for showing battery alert

isButtonPressed
bool isButtonPressed(HipGamepadButton btn)

Receives a gamepad button

isButtonJustPressed
bool isButtonJustPressed(HipGamepadButton btn)
Undocumented in source.
isButtonJustReleased
bool isButtonJustReleased(HipGamepadButton btn)
Undocumented in source.
isButtonPressed
bool isButtonPressed(string btn)
Undocumented in source. Be warned that the author may not have intended to support it.
isConnected
bool isConnected()

After first created, gamepads are never destroyed, use this property for using it or not

setConnected
void setConnected(bool connected)

May include an implementation for turning gamepad off

Meta